<?php
	require_once('auth.php');

?>

<html>
<head>
<script language="javascript">
//location.replace("Form_Member.php")

</script>
<title>::.::.::  APPMA  ||  Member Insert  ::.::.::</title></head>
<body>
		 
		 
<?php
$con = mysql_connect("localhost","appma" ,"database");
		
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

	mysql_select_db("162_appma", $con);
$sql="INSERT INTO  members (
`regno` ,
`name` ,
`status` ,
`cnic` ,
`firmname` ,
`established` ,
`headoffice` ,
`phno` ,
`fax` ,
`mobile` ,
`phres` ,
`email` ,
`catagory` ,
`ntn` ,
`streg` ,
`voter`
)
VALUES
(
'$_POST[regno]',
'$_POST[name]',
'$_POST[status]',
'$_POST[cnic]',
'$_POST[firmname]',
'$_POST[established]',
'$_POST[headoffice]',
'$_POST[phno]',
'$_POST[fax]',
'$_POST[mobile]',
'$_POST[phres]',
'$_POST[email]',
'$_POST[catogary]',
'$_POST[ntn]',
'$_POST[streg]',
'$_POST[voter]'
)";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";
mysql_close($con)

?>
</body>
  </html>                    
                 

